package com.baiwei.vpnapi.service;

import com.baiwei.vpnapi.entity.reqentity.LoginInput;

public interface AuthService {

    /**
    * @Description: 登录接口
    * @Param: 
    * @return: 
    * @Author: Mr.Stone
    * @Date: 2020/2/24
    */
    Object login(LoginInput input);

    /**
     * @Description: 登出
     * @Param:
     * @return:
     * @Author: Mr.Stone
     * @Date: 2020/2/26
     */

    Object logout();

    /**
    * @Description: 发送手机短信验证码
    * @Param:
    * @return:
    * @Author: Mr.Stone
    * @Date: 2020/3/13
    */
    Object sendAuthCodeSms(String phone);

    /**
    * @Description: 发送邮箱验证码
    * @Param:
    * @return:
    * @Author: Mr.Stone
    * @Date: 2020/3/13
    */
    Object sendAuthCodeEmail(String email);

    /**
    * @Description: 验证码校验
    * @Param:
    * @return:
    * @Author: Mr.Stone
    * @Date: 2020/3/15
    */

    Object codeAuth(String username, String password, String authCode);

    /**
    * @Description: 获取推送信息
    * @Param: 
    * @return: 
    * @Author: Mr.Stone
    * @Date: 2020/3/16
    */
    Object getMessage(Integer pageNo, Integer pageSize);

    /**
    * @Description: 对比验证码
    * @Param:
    * @return:
    * @Author: Mr.Stone
    * @Date: 2020/3/17
    */
    Object matchAuthCode(String authCode, String username);
}
